#ifndef __DEMOAPP_H__
#define __DEMOAPP_H__

#include <iostream>
#include <string>
#include <string.h>
#include "protocol.h"
#include "MemberMgr.h"
#include "CardMgr.h"
#include "OrderMgr.h"
#include "util.h"

using namespace std;

#define PROJECT_NAME        "iyoga"
#define CMD_ADD_MEMBER      "add-member"
#define ID_CMD_ADD_MEMBER   0
#define CMD_ADD_CARD        "add-card"
#define ID_CMD_ADD_CARD     1

int GetInput();
int HandleCmd(int cmdID);
int HandleCmdAddMember(string memName, string memAddr, string memOccu);
int HandleCmdAddCardToMember(string memName, string cardType, int cardNum);

#endif // __DEMOAPP_H__
